<template>
	<view class="appraiseBox">
		<view class="title">
			<view class="text">
				商品评价(8)
			</view>
			<view class="icon">

			</view>
		</view>
		<view class="userinfo">
			<view class="avatar">

			</view>
			<view class="username">
				匿名用户
			</view>
			<view class="time">
				前天
			</view>
		</view>
		<view class="rating">
			<view class="rating_one">
				<view class="top">符合描述</view>
				<view class="box"> <u-rate :count="countOne" size="28" v-model="valueOne"
						active-color="#FCE847"></u-rate>
				</view>
				<view class="text">满意</view>
			</view>
			<view class="rating_two">
				<view class="top">服务态度</view>
				<view class="box"> <u-rate :count="countTwo" size="28" v-model="valueTwo"
						active-color="#FCE847"></u-rate></view>
				<view class="text">非常满意</view>
			</view>
			<view class="rating_three">
				<view class="top">物流服务</view>
				<view class="box"> <u-rate :count="countThree" size="28" v-model="valueThree"
						active-color="#FCE847"></u-rate>
				</view>
				<view class="text">非常满意</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				countOne: 5,
				valueOne: 2,
				countTwo: 5,
				valueTwo: 3,
				countThree: 5,
				valueThree: 5
			}
		}
	}
</script>

<style lang="scss" scoped>
	.appraiseBox {
		width: 100%;
		height: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;

		.title {
			width: 95%;
			height: 60rpx;
			margin-top: 20rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;

			.text {
				font-size: 32rpx;
				font-weight: bold;
			}

			.icon {
				width: 25rpx;
				height: 25rpx;
				background-image: url("/static/my/right_black.svg");
				background-size: contain;
				background-position: center;
				background-repeat: no-repeat;
			}
		}

		.userinfo {
			width: 95%;
			height: 80rpx;
			display: flex;
			align-items: center;

			.avatar {
				width: 50rpx;
				height: 50rpx;
				background-image: url("/static/avatar.png");
				background-size: contain;
				border-radius: 50%;
				background-position: center;
				background-repeat: no-repeat;
				margin: 0px 20rpx;
			}

			.username {
				font-size: 28rpx;
				color: #999999;
				font-weight: bold;
			}

			.time {
				margin-left: 20rpx;
				color: #999999;
			}
		}

		.rating {
			width: 95%;
			height: 240rpx;
			display: flex;
			flex-direction: column;
			justify-content: space-between;

			.rating_one,
			.rating_two,
			.rating_three {
				width: 100%;
				height: 80rpx;
				display: flex;
				align-items: center;

				.top {
					width: 150rpx;
					text-align: center;
					font-size: 28rpx;
					color: #999999;
				}

				.text {
					margin-left: 20rpx;
					color: #999999;
				}
			}
		}
	}
</style>